/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/views/layouts/index'),
    redirect: '/home',
    meta: {
      title: '首页',
      keepAlive: false
    },
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('@/views/home/index'),
        meta: { title: '首页', keepAlive: true }
      },
      {
        path: '/analysis',
        name: 'Analysis',
        component: () => import('@/views/analysis/index'),
        meta: { title: '专题分析', keepAlive: true }
      },
      {
        path: '/custom',
        name: 'Custom',
        component: () => import('@/views/custom/index'),
        meta: { title: '定制报表', keepAlive: true }
      },
      {
        path: '/about',
        name: 'About',
        component: () => import('@/views/home/about'),
        meta: { title: '关于我', keepAlive: true }
      },
      {
        path: '/aboutDetails',
        name: 'aboutDetails',
        component: () => import('@/views/home/aboutDetails'),
        meta: { title: '任务详情', keepAlive: false }
      },
      {
        path: '/temp',
        name: 'temp',
        component: () => import('@/views/temp/index'),
        meta: { title: 'temp', keepAlive: false }
      },
      {
        path: '/runIn',
        name: 'runIn',
        component: () => import('@/views/home/runIn'),
        meta: { title: 'runIn', keepAlive: false }
      }
    ]
  },
  {
    path: '/detail',
    component: () => import('@/views/layouts/sub'),
    redirect: '/detail',
    meta: {
      title: '下钻',
      keepAlive: false
    },
    children: [
      {
        path: '/detail',
        name: 'detail',
        component: () => import('@/views/detail/index'),
        meta: { title: '下钻', keepAlive: false }
      },
      {
        path: '/sub/ddnav',
        name: 'ddnav',
        component: () => import('@/views/analysis/ddnav'),
        meta: { title: '钉钉测试', keepAlive: true }
      }
    ]
  }
]
